package bb.lanxing.lib.devices.sync;

import androidx.core.util.Pools;

public class FitTrans {
    private static final Pools.SynchronizedPool<FitTrans> POOL = new Pools.SynchronizedPool<>(10);
    boolean completed;
    long id;
    boolean ignoreCRC;
    boolean ignoreDecoderError;
    String path;
    Object playload;

    private FitTrans() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long j) {
        this.id = j;
    }

    public Object getPlayload() {
        return this.playload;
    }

    public void setPlayload(Object obj) {
        this.playload = obj;
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String str) {
        this.path = str;
    }

    public boolean isCompleted() {
        return this.completed;
    }

    public void setCompleted(boolean z) {
        this.completed = z;
    }

    public boolean isIgnoreDecoderError() {
        return this.ignoreDecoderError;
    }

    public void setIgnoreDecoderError(boolean z) {
        this.ignoreDecoderError = z;
    }

    public boolean isIgnoreCRC() {
        return this.ignoreCRC;
    }

    public void setIgnoreCRC(boolean z) {
        this.ignoreCRC = z;
    }

    public static FitTrans get() {
        FitTrans acquire = POOL.acquire();
        return acquire == null ? new FitTrans() : acquire;
    }

    public void recycle() {
        POOL.release(this);
    }

    public String toString() {
        return "FitTrans{id=" + this.id + ", playload=" + this.playload + ", path='" + this.path + "', completed=" + this.completed + '}';
    }
}
